<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="css/菜品分类2.css"/>
		<link rel="stylesheet" type="text/css" href="css/header.css"/>
		<script type="text/javascript" src="js/html5shiv.min.js" ></script>
	   <script type="text/javascript" src='js/flexible.debug.js'></script>
	</head>
	<body>
		<header>
			<span class="left" onclick="location.href='shouye.html'"><img src="img/qt.png"/></span>
			<span class="center">菜品分类</span>
			<span class="right"></span>
		</header>
		<div class="bg"><img src="img/bg1.png"/></div>
		<section class="main">
			<ul class="rmcy_box_meishi_lis">
				
			</ul>
			
		</section>
		<div class="bga"><img src="img/bg1.png"/></div>
		<footer>
			<ul>
				<li><a href="#" class="curr" onclick="location.href='shouye.html'"><img src="img/fza.png"/>首页</a></li>
				<li><a href="#"  onclick="location.href='fujin.html'"><img src="img/qa.png"/>附近</a></li>
				<li><a href="#" onclick="location.href='dingd.html'"><img src="img/th.png"/>订单</a></li>
				<li><a href="#"  onclick="location.href='gengduo.html'"><img src="img/xin.png"/>更多</a></li>
			</ul>
		</footer>
		
		<script src="js/flexible_css.debug.js"></script>
		<script src="js/jquery-1.11.2.min.js"></script>
		<script>
			$.get("js/cpfl2.json",function(data) {
					$.each(data,function(i) {
						var aa=$("<li></li>")
				        aa.appendTo(".rmcy_box_meishi_lis")	
				        $('<div class="left"><img src="'+data[i].img+'"/></div>').appendTo(aa);
				        $('<div class="center"><span>'+data[i].name+'</span><span>'+data[i].price+'</span></div>').appendTo(aa);
				       $('<div class="right"><button class="btn">'+data[i].btn+'</button></div>').appendTo(aa);
					});
					$('.rmcy_box_meishi_lis li .btn').eq(2) .click(function() { 
            	location.href = 'cpjs.html'
           });
           $('.rmcy_box_meishi_lis li .btn').eq(6) .click(function() { 
            	location.href = 'cpjs.html'
           });
				},"json");
				$('footer>ul>li>a').click(function() {            	$(this).addClass('curr').parent().siblings().children().removeClass('curr');
           });
            
            
          
		</script>
		
	</body>
</html>
